import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty, IsString } from 'class-validator';

export class CreateSpecialColumnDto {
  @IsString({ message: '专栏标题必须是字符串' })
  @IsNotEmpty({ message: '专栏标题不能为空' })
  @ApiProperty({
    description: '专栏标题',
    example: '专栏标题专栏标题',
  })
  title: string;

  @IsString({ message: '专栏描述必须是字符串' })
  @IsNotEmpty({ message: '专栏描述不能为空' })
  @ApiProperty({
    description: '专栏描述',
    example: '专栏描述专栏描述专栏描述专栏描述',
  })
  description: string;
}
